package test6;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class Test {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois=new ObjectInputStream(new FileInputStream("stream-test\\test5_1.txt"));

        Object stu = ois.readObject();

        ois.close();

        System.out.println(stu);

    }
}
